<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 引包 -->
    <script src="../js/vue.js"></script>
</head>
<body>
    <!-- 容器|模板 -->
    <div id="app">
        <button @click="f += 10">点击放大p标签的字体</button>
        <!-- 两种拼接方法 -->
        <!-- <p :style="{fontSize:f+'px'}">你就是个p</p> -->
        <p :style="{fontSize:`${f}px`}">你就是个p</p>


    </div>
</body>
</html>
<script>
     //关联VM
     const VM = new Vue({
         el:'#app',
         data:{
            //  默认字体大小16
             f:16
         }
     })
</script>